﻿namespace WinForms.ControlList.Systems
{
    using Bll.Systems;
    using Model.Systems;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;
    using WinForms.Properties;

    public class FrmSystemsSet : Form
    {
        private Button btn_Close;
        private Button btn_NextButton;
        private CheckBox chk_IsShow;
        private CheckBox chk_IsTeaDunk;
        private CheckBox chk_IsUseAgio;
        private CheckBox chk_IsUseBeginSale;
        private CheckBox chk_IsUsePope;
        private CheckBox chk_IsUseProc;
        private CheckBox chk_IsUseStock;
        private CheckBox chk_OpenHelp;
        private IContainer components = null;
        private GroupBox groupBox1;
        private GroupBox groupBox2;
        public const int HTCAPTION = 2;
        private Label label1;
        private Label label2;
        private Label label3;
        private Label label4;
        private Label label5;
        private Label label6;
        private Label lbl_Address;
        private Label lbl_ChainName;
        private Label lbl_ChainTel;
        private Label lbl_Fax;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Button;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Top;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        public const int SC_MOVE = 0xf010;
        private TextBox txt_Boss;
        private TextBox txt_ChainAddress;
        private TextBox txt_ChainFax;
        private TextBox txt_ChainName;
        private TextBox txt_ChainTel;
        public const int WM_SYSCOMMAND = 0x112;

        public FrmSystemsSet()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
        }

        private void btn_Close_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void btn_NextButton_Click(object sender, EventArgs e)
        {
            if (this.txt_ChainName.Text.Trim() == "")
            {
                MessageBox.Show("请输入公司名称！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                this.txt_ChainName.Focus();
            }
            else if (this.txt_Boss.Text.Trim() == "")
            {
                MessageBox.Show("请输入负责人名称！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                this.txt_Boss.Select();
            }
            else if (this.txt_ChainAddress.Text.Trim() == "")
            {
                MessageBox.Show("请输入公司所在地址！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                this.txt_ChainAddress.Select();
            }
            else if (this.txt_ChainTel.Text.Trim() == "")
            {
                MessageBox.Show("请输入公司电话！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                this.txt_ChainTel.Select();
            }
            else if (this.txt_ChainFax.Text.Trim() == "")
            {
                MessageBox.Show("请输入公司传真！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                this.txt_ChainFax.Select();
            }
            else
            {
                DataTable list = ChainBll.GetList("");
                if (list.Rows.Count > 0)
                {
                    ChainEnt model = ChainBll.GetModel(int.Parse(list.Rows[0]["ChainNum"].ToString()));
                    if (model != null)
                    {
                        ConfigEnt ent2 = new ConfigEnt {
                            ConfigId = 1
                        };
                        if (this.chk_IsTeaDunk.Checked)
                        {
                            ent2.IsUseTeaDunk = 1;
                        }
                        else
                        {
                            ent2.IsUseTeaDunk = 0;
                        }
                        if (this.chk_IsUseBeginSale.Checked)
                        {
                            ent2.IsUseSale = 1;
                        }
                        else
                        {
                            ent2.IsUseSale = 0;
                        }
                        if (this.chk_IsUseProc.Checked)
                        {
                            ent2.IsUseProc = 1;
                        }
                        else
                        {
                            ent2.IsUseProc = 0;
                        }
                        if (this.chk_IsUseStock.Checked)
                        {
                            ent2.IsUseStock = 1;
                        }
                        else
                        {
                            ent2.IsUseStock = 0;
                        }
                        if (this.chk_IsUsePope.Checked)
                        {
                            ent2.IsUseMeUse = 1;
                        }
                        else
                        {
                            ent2.IsUseMeUse = 0;
                        }
                        if (this.chk_IsUseAgio.Checked)
                        {
                            ent2.IsUseAgio = 0;
                        }
                        else
                        {
                            ent2.IsUseAgio = 1;
                        }
                        if (this.chk_IsShow.Checked)
                        {
                            ent2.IsUseDaoHang = 1;
                        }
                        else
                        {
                            ent2.IsUseDaoHang = 0;
                        }
                        if (this.chk_OpenHelp.Checked)
                        {
                            ent2.IsUseHelp = 1;
                        }
                        else
                        {
                            ent2.IsUseHelp = 0;
                        }
                        ConfigBll.Update(ent2);
                        model.ChainAdress = this.txt_ChainAddress.Text;
                        model.ChainBossName = this.txt_Boss.Text;
                        model.ChainName = this.txt_ChainName.Text;
                        model.ChainTel = this.txt_ChainTel.Text;
                        model.ChainFax = this.txt_ChainFax.Text;
                        ChainBll.Update(model);
                        MessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                        base.DialogResult = DialogResult.OK;
                        base.Close();
                    }
                }
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FrmSystemsSet_Load(object sender, EventArgs e)
        {
            this.txt_ChainName.Enabled = false;
            DataTable list = ChainBll.GetList("");
            if (list.Rows.Count > 0)
            {
                this.txt_ChainName.Text = list.Rows[0]["ChainName"].ToString();
                this.txt_ChainTel.Text = list.Rows[0]["ChainTel"].ToString();
                this.txt_ChainFax.Text = list.Rows[0]["ChainFax"].ToString();
                this.txt_ChainAddress.Text = list.Rows[0]["ChainAdress"].ToString();
                this.txt_Boss.Text = list.Rows[0]["ChainBossName"].ToString();
                ConfigEnt model = ConfigBll.GetModel(1);
                if (model != null)
                {
                    if (model.IsUseMeUse == 1)
                    {
                        this.chk_IsUsePope.Checked = true;
                    }
                    else
                    {
                        this.chk_IsUsePope.Checked = false;
                    }
                    if (model.IsUseProc == 1)
                    {
                        this.chk_IsUseProc.Checked = true;
                    }
                    else
                    {
                        this.chk_IsUseProc.Checked = false;
                    }
                    if (model.IsUseSale == 1)
                    {
                        this.chk_IsUseBeginSale.Checked = true;
                    }
                    else
                    {
                        this.chk_IsUseBeginSale.Checked = false;
                    }
                    if (model.IsUseStock == 1)
                    {
                        this.chk_IsUseStock.Checked = true;
                    }
                    else
                    {
                        this.chk_IsUseStock.Checked = false;
                    }
                    if (model.IsUseTeaDunk == 1)
                    {
                        this.chk_IsTeaDunk.Checked = true;
                    }
                    else
                    {
                        this.chk_IsTeaDunk.Checked = false;
                    }
                    if (model.IsUseDaoHang == 1)
                    {
                        this.chk_IsShow.Checked = true;
                    }
                    else
                    {
                        this.chk_IsShow.Checked = false;
                    }
                    if (model.IsUseHelp == 1)
                    {
                        this.chk_OpenHelp.Checked = true;
                    }
                    else
                    {
                        this.chk_OpenHelp.Checked = false;
                    }
                }
            }
        }

        private void InitializeComponent()
        {
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.groupBox2 = new GroupBox();
            this.label6 = new Label();
            this.label5 = new Label();
            this.label4 = new Label();
            this.txt_ChainFax = new TextBox();
            this.txt_ChainTel = new TextBox();
            this.txt_ChainAddress = new TextBox();
            this.txt_Boss = new TextBox();
            this.label3 = new Label();
            this.txt_ChainName = new TextBox();
            this.label2 = new Label();
            this.lbl_Fax = new Label();
            this.lbl_ChainTel = new Label();
            this.lbl_Address = new Label();
            this.lbl_ChainName = new Label();
            this.groupBox1 = new GroupBox();
            this.chk_OpenHelp = new CheckBox();
            this.chk_IsUseStock = new CheckBox();
            this.chk_IsShow = new CheckBox();
            this.chk_IsUseAgio = new CheckBox();
            this.chk_IsTeaDunk = new CheckBox();
            this.chk_IsUsePope = new CheckBox();
            this.chk_IsUseBeginSale = new CheckBox();
            this.chk_IsUseProc = new CheckBox();
            this.pan_Button = new Panel();
            this.btn_Close = new Button();
            this.btn_NextButton = new Button();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_DockLeft = new Panel();
            this.label1 = new Label();
            this.pan_Top = new Panel();
            this.pan_ZhongJian = new Panel();
            this.pan_TopRight = new Panel();
            this.pan_TopLeft = new Panel();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.pan_Button.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            base.SuspendLayout();
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(0x2b9, 0x18e);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(0x2b7, 0x18d);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.groupBox2);
            this.pan_AllPlanes.Controls.Add(this.groupBox1);
            this.pan_AllPlanes.Controls.Add(this.pan_Button);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(0x2a3, 0x179);
            this.pan_AllPlanes.TabIndex = 4;
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.txt_ChainFax);
            this.groupBox2.Controls.Add(this.txt_ChainTel);
            this.groupBox2.Controls.Add(this.txt_ChainAddress);
            this.groupBox2.Controls.Add(this.txt_Boss);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.txt_ChainName);
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Controls.Add(this.lbl_Fax);
            this.groupBox2.Controls.Add(this.lbl_ChainTel);
            this.groupBox2.Controls.Add(this.lbl_Address);
            this.groupBox2.Controls.Add(this.lbl_ChainName);
            this.groupBox2.Location = new Point(0x11, 0x12);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new Size(640, 0xc2);
            this.groupBox2.TabIndex = 0x10;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "基本信息";
            this.label6.AutoSize = true;
            this.label6.ForeColor = Color.Red;
            this.label6.Location = new Point(0x21f, 130);
            this.label6.Name = "label6";
            this.label6.Size = new Size(0x17, 12);
            this.label6.TabIndex = 0x1c;
            this.label6.Text = "(*)";
            this.label5.AutoSize = true;
            this.label5.ForeColor = Color.Red;
            this.label5.Location = new Point(0x21f, 0x5e);
            this.label5.Name = "label5";
            this.label5.Size = new Size(0x17, 12);
            this.label5.TabIndex = 0x1b;
            this.label5.Text = "(*)";
            this.label4.AutoSize = true;
            this.label4.ForeColor = Color.Red;
            this.label4.Location = new Point(0x21f, 0x38);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x17, 12);
            this.label4.TabIndex = 0x1a;
            this.label4.Text = "(*)";
            this.txt_ChainFax.Location = new Point(0x6f, 0xa1);
            this.txt_ChainFax.Name = "txt_ChainFax";
            this.txt_ChainFax.Size = new Size(0x1aa, 0x15);
            this.txt_ChainFax.TabIndex = 0x19;
            this.txt_ChainTel.Location = new Point(0x6f, 0x7d);
            this.txt_ChainTel.Name = "txt_ChainTel";
            this.txt_ChainTel.Size = new Size(0x1aa, 0x15);
            this.txt_ChainTel.TabIndex = 0x18;
            this.txt_ChainAddress.Location = new Point(0x6f, 0x59);
            this.txt_ChainAddress.Name = "txt_ChainAddress";
            this.txt_ChainAddress.Size = new Size(0x1aa, 0x15);
            this.txt_ChainAddress.TabIndex = 0x17;
            this.txt_Boss.Location = new Point(0x6f, 0x35);
            this.txt_Boss.Name = "txt_Boss";
            this.txt_Boss.Size = new Size(0x1aa, 0x15);
            this.txt_Boss.TabIndex = 0x16;
            this.label3.AutoSize = true;
            this.label3.ForeColor = Color.Red;
            this.label3.Location = new Point(0x21f, 0x13);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x17, 12);
            this.label3.TabIndex = 0x15;
            this.label3.Text = "(*)";
            this.txt_ChainName.Location = new Point(0x6f, 0x10);
            this.txt_ChainName.Name = "txt_ChainName";
            this.txt_ChainName.Size = new Size(0x1aa, 0x15);
            this.txt_ChainName.TabIndex = 20;
            this.label2.AutoSize = true;
            this.label2.Location = new Point(0x3a, 0x38);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x2f, 12);
            this.label2.TabIndex = 0x13;
            this.label2.Text = "负责人:";
            this.lbl_Fax.AutoSize = true;
            this.lbl_Fax.Location = new Point(0x3a, 0xa4);
            this.lbl_Fax.Name = "lbl_Fax";
            this.lbl_Fax.Size = new Size(0x2f, 12);
            this.lbl_Fax.TabIndex = 0x12;
            this.lbl_Fax.Text = "传真号:";
            this.lbl_ChainTel.AutoSize = true;
            this.lbl_ChainTel.Location = new Point(0x2e, 130);
            this.lbl_ChainTel.Name = "lbl_ChainTel";
            this.lbl_ChainTel.Size = new Size(0x3b, 12);
            this.lbl_ChainTel.TabIndex = 0x11;
            this.lbl_ChainTel.Text = "联系电话:";
            this.lbl_Address.AutoSize = true;
            this.lbl_Address.Location = new Point(0x16, 0x5e);
            this.lbl_Address.Name = "lbl_Address";
            this.lbl_Address.Size = new Size(0x53, 12);
            this.lbl_Address.TabIndex = 0x10;
            this.lbl_Address.Text = "公司所在地址:";
            this.lbl_ChainName.AutoSize = true;
            this.lbl_ChainName.Location = new Point(0x2e, 0x15);
            this.lbl_ChainName.Name = "lbl_ChainName";
            this.lbl_ChainName.Size = new Size(0x3b, 12);
            this.lbl_ChainName.TabIndex = 15;
            this.lbl_ChainName.Text = "公司名称:";
            this.groupBox1.Controls.Add(this.chk_OpenHelp);
            this.groupBox1.Controls.Add(this.chk_IsUseStock);
            this.groupBox1.Controls.Add(this.chk_IsShow);
            this.groupBox1.Controls.Add(this.chk_IsUseAgio);
            this.groupBox1.Controls.Add(this.chk_IsTeaDunk);
            this.groupBox1.Controls.Add(this.chk_IsUsePope);
            this.groupBox1.Controls.Add(this.chk_IsUseBeginSale);
            this.groupBox1.Controls.Add(this.chk_IsUseProc);
            this.groupBox1.Location = new Point(0x11, 0xde);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new Size(640, 100);
            this.groupBox1.TabIndex = 15;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "程序设置";
            this.chk_OpenHelp.AutoSize = true;
            this.chk_OpenHelp.Checked = true;
            this.chk_OpenHelp.CheckState = CheckState.Checked;
            this.chk_OpenHelp.Location = new Point(0x1ff, 0x19);
            this.chk_OpenHelp.Name = "chk_OpenHelp";
            this.chk_OpenHelp.Size = new Size(0x60, 0x10);
            this.chk_OpenHelp.TabIndex = 7;
            this.chk_OpenHelp.Text = "开启动态帮助";
            this.chk_OpenHelp.UseVisualStyleBackColor = true;
            this.chk_IsUseStock.AutoSize = true;
            this.chk_IsUseStock.Checked = true;
            this.chk_IsUseStock.CheckState = CheckState.Checked;
            this.chk_IsUseStock.Location = new Point(0x153, 0x19);
            this.chk_IsUseStock.Name = "chk_IsUseStock";
            this.chk_IsUseStock.Size = new Size(0x60, 0x10);
            this.chk_IsUseStock.TabIndex = 2;
            this.chk_IsUseStock.Text = "开启库存管理";
            this.chk_IsUseStock.UseVisualStyleBackColor = true;
            this.chk_IsShow.AutoSize = true;
            this.chk_IsShow.Location = new Point(0x153, 0x3f);
            this.chk_IsShow.Name = "chk_IsShow";
            this.chk_IsShow.Size = new Size(0x9c, 0x10);
            this.chk_IsShow.TabIndex = 6;
            this.chk_IsShow.Text = "程序启动时显示导航窗体";
            this.chk_IsShow.UseVisualStyleBackColor = true;
            this.chk_IsUseAgio.AutoSize = true;
            this.chk_IsUseAgio.Location = new Point(0x103, 0x54);
            this.chk_IsUseAgio.Name = "chk_IsUseAgio";
            this.chk_IsUseAgio.Size = new Size(120, 0x10);
            this.chk_IsUseAgio.TabIndex = 5;
            this.chk_IsUseAgio.Text = "所销售茶叶不打折";
            this.chk_IsUseAgio.UseVisualStyleBackColor = true;
            this.chk_IsUseAgio.Visible = false;
            this.chk_IsTeaDunk.AutoSize = true;
            this.chk_IsTeaDunk.Checked = true;
            this.chk_IsTeaDunk.CheckState = CheckState.Checked;
            this.chk_IsTeaDunk.Location = new Point(0xae, 0x3f);
            this.chk_IsTeaDunk.Name = "chk_IsTeaDunk";
            this.chk_IsTeaDunk.Size = new Size(120, 0x10);
            this.chk_IsTeaDunk.TabIndex = 4;
            this.chk_IsTeaDunk.Text = "开启茶叶试泡管理";
            this.chk_IsTeaDunk.UseVisualStyleBackColor = true;
            this.chk_IsUsePope.AutoSize = true;
            this.chk_IsUsePope.Checked = true;
            this.chk_IsUsePope.CheckState = CheckState.Checked;
            this.chk_IsUsePope.Location = new Point(0x22, 0x3f);
            this.chk_IsUsePope.Name = "chk_IsUsePope";
            this.chk_IsUsePope.Size = new Size(0x6c, 0x10);
            this.chk_IsUsePope.TabIndex = 3;
            this.chk_IsUsePope.Text = "只有我一人使用";
            this.chk_IsUsePope.UseVisualStyleBackColor = true;
            this.chk_IsUseBeginSale.AutoSize = true;
            this.chk_IsUseBeginSale.Checked = true;
            this.chk_IsUseBeginSale.CheckState = CheckState.Checked;
            this.chk_IsUseBeginSale.Location = new Point(0xae, 0x19);
            this.chk_IsUseBeginSale.Name = "chk_IsUseBeginSale";
            this.chk_IsUseBeginSale.Size = new Size(0x60, 0x10);
            this.chk_IsUseBeginSale.TabIndex = 1;
            this.chk_IsUseBeginSale.Text = "开启销售管理";
            this.chk_IsUseBeginSale.UseVisualStyleBackColor = true;
            this.chk_IsUseProc.AutoSize = true;
            this.chk_IsUseProc.Checked = true;
            this.chk_IsUseProc.CheckState = CheckState.Checked;
            this.chk_IsUseProc.Location = new Point(0x22, 0x19);
            this.chk_IsUseProc.Name = "chk_IsUseProc";
            this.chk_IsUseProc.Size = new Size(0x60, 0x10);
            this.chk_IsUseProc.TabIndex = 0;
            this.chk_IsUseProc.Text = "开启采购管理";
            this.chk_IsUseProc.UseVisualStyleBackColor = true;
            this.pan_Button.Controls.Add(this.btn_Close);
            this.pan_Button.Controls.Add(this.btn_NextButton);
            this.pan_Button.Dock = DockStyle.Bottom;
            this.pan_Button.Location = new Point(0, 0x152);
            this.pan_Button.Name = "pan_Button";
            this.pan_Button.Size = new Size(0x2a3, 0x27);
            this.pan_Button.TabIndex = 0;
            this.pan_Button.Paint += new PaintEventHandler(this.pan_Button_Paint);
            this.btn_Close.Location = new Point(0x174, 8);
            this.btn_Close.Name = "btn_Close";
            this.btn_Close.Size = new Size(0x4b, 0x17);
            this.btn_Close.TabIndex = 2;
            this.btn_Close.Text = "关 闭";
            this.btn_Close.UseVisualStyleBackColor = true;
            this.btn_Close.Click += new EventHandler(this.btn_Close_Click);
            this.btn_NextButton.Location = new Point(0xe4, 8);
            this.btn_NextButton.Name = "btn_NextButton";
            this.btn_NextButton.Size = new Size(0x4b, 0x17);
            this.btn_NextButton.TabIndex = 1;
            this.btn_NextButton.Text = "保 存";
            this.btn_NextButton.UseVisualStyleBackColor = true;
            this.btn_NextButton.Click += new EventHandler(this.btn_NextButton_Click);
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new Point(0x2ad, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0x179);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0x179);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new Point(0, 0x183);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(0x2b7, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(0x2b7, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new Point(1, 0x18d);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(0x2b7, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new Point(0x2b8, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 0x18e);
            this.pan_DockRight.TabIndex = 1;
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 0x18e);
            this.pan_DockLeft.TabIndex = 0;
            this.label1.AutoSize = true;
            this.label1.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.label1.Font = new Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.label1.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.label1.Location = new Point(6, 8);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x3f, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "系统设置";
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(0x2b9, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.label1);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x295, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.pan_ZhongJian.MouseDown += new MouseEventHandler(this.pan_ZhongJian_MouseDown);
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new Point(0x2b4, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            this.pan_TopLeft.MouseDown += new MouseEventHandler(this.pan_TopLeft_MouseDown);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x2b9, 430);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            base.Name = "FrmSystemsSet";
            base.ShowInTaskbar = false;
            this.Text = "初始化系统";
            base.Load += new EventHandler(this.FrmSystemsSet_Load);
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.pan_Button.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            base.ResumeLayout(false);
        }

        private void pan_Button_Paint(object sender, PaintEventArgs e)
        {
            this.Panel_ResetPaint(e, this.pan_Button, Color.FromArgb(0xca, 0xc9, 0xce), 1, 1, 1, 1);
        }

        private void pan_TopLeft_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void pan_ZhongJian_MouseDown(object sender, MouseEventArgs e)
        {
            ReleaseCapture();
            SendMessage(base.Handle, 0x112, 0xf012, 0);
        }

        private void Panel_ResetPaint(PaintEventArgs e, Panel panel, Color color, int leftBoder, int topBoder, int rightBoder, int bottomBoder)
        {
            ControlPaint.DrawBorder(e.Graphics, panel.ClientRectangle, color, leftBoder, ButtonBorderStyle.Solid, color, topBoder, ButtonBorderStyle.Solid, color, rightBoder, ButtonBorderStyle.Solid, color, bottomBoder, ButtonBorderStyle.Solid);
        }

        [DllImport("user32.dll")]
        public static extern bool ReleaseCapture();
        [DllImport("user32.dll")]
        public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
    }
}

